//
//  ViewController.m
//  newView
//
//  Created by yjl on 14-5-26.
//  Copyright (c) 2014年 上海傲融软件公司. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	[self.kTextView_user setStayle:KTextStyle_User];
    [self.kTextView_pass setStayle:KTextStyle_Pass];
    
    
    // Example of a bigger switch with images
    [self.sswitch addTarget:self action:@selector(switchChanged:) forControlEvents:UIControlEventValueChanged];
    self.sswitch.offImage = [UIImage imageNamed:@"cross.png"];
    self.sswitch.onImage = [UIImage imageNamed:@"check.png"];
    self.sswitch.onColor = [UIColor colorWithHue:0.08f saturation:0.74f brightness:1.00f alpha:1.00f];
    self.sswitch.isRounded = NO;
    
    self.lab_remeber.font = [UIFont fontWithName:@"FZXiYuan-M01S" size:20];
    //self.lab_remeber.font = [UIFont fontWithName:@"STXingkai" size:20];
    
    
    [self.btn_login.titleLabel setText:@"登陆"];
    [self.btn_login.titleLabel setTextColor:[UIColor colorWithRed:0.0f/255 green:0.0f/255 blue:0.0f/255 alpha:1.0f]];
    [self.btn_login.titleLabel setFont:[UIFont fontWithName:@"FZXiYuan-M01S" size:20]];
    
}

- (void)switchChanged:(SevenSwitch *)sender {
    NSLog(@"Changed value to: %@", sender.on ? @"ON" : @"OFF");
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
